package com.medicinemanager.business;

import com.medicinemanager.app.MedicineApp;
import com.medicinemanager.sql.StaffManager;

import android.content.Context;
import android.database.Cursor;

public class ShowStaffSource {
	private MedicineApp mMedicineApp = null;
	private StaffManager mStaffManager = null;
	
	public ShowStaffSource(Context context) {
		mMedicineApp = (MedicineApp) context.getApplicationContext();
		mStaffManager = new StaffManager(context);
	}
	
	public void parseData(){
		String sqlinstance = "select * from staff";
		mMedicineApp.setStaffs(mStaffManager.rawQuery(sqlinstance));
	}
}
